package view;

import javax.swing.JFrame;

import model.Image;
import model.Perspective;

@SuppressWarnings("serial")
public class MainFrame extends JFrame {
	
	private MenuFrame menu;
	
	public MainFrame(Image image, Perspective perspective) {
		
		menu = new MenuFrame();
		setJMenuBar(menu);
		
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		pack();
		setVisible(true);
		
	}
	
	public MainFrame(Thumbnail thumbnail, ImagePanel firstView, ImagePanel secondView) {
		
		menu = new MenuFrame();
		setJMenuBar(menu);
		
		add(new MainPanel(thumbnail, firstView, secondView, this) );
		
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		pack();
		setVisible(true);
		
	}
	
	public MenuFrame getMenuFrame() {
		return menu;
	}
	
}